#pragma once
#include <typescommon.h>

//写个整形堆。

union heapNodeInform
{
    uint32_t keyuint;
};


struct heapRootInform
{
    union heapNodeInform *nodes;
    uint32_t totalsize;
    uint32_t nodesize;
    int bigTreeFlag;
};

int heapRootInit(struct heapRootInform *heaproot, uint32_t totalLength, int isBigTree);
int heapRootFree(struct heapRootInform *heaproot);
int heapRootAddNode(struct heapRootInform *heaproot, const union heapNodeInform *data);
int heapRootGetTop(struct heapRootInform *heaproot, union heapNodeInform *data);
int heapRootPrintf(struct heapRootInform *heaproot);

